//
//  CsPaySDK.h
//  UnionRich
//
//  Created by jun on 15/12/3.
//  Copyright © 2015年 cgc. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Paymodel.h"
#import "UIViewControllerCallBackProtocol.h"
#import "NetWorkController.h"
#import "Paymodel.h"
#import "YTBarcodePayViewController.h"
#import "ZbarViewController.h"
//#import "YTBillViewController.h"
#define LOGIN_MARK @"LOGIN"
//#define PAY_MARK @"PAY"
@interface CsPaySDK : NSObject <NetWorkDelegate,UIViewControllerCallBackProtocol>
/**
 *  账号
 */
@property (nonatomic ,strong) NSString *api_token;
/**
 *  密码
 */
@property (nonatomic ,strong) NSString *api_secret;
/**
 *  页面
 */
@property (nonatomic ,strong) NSDictionary *option;
/**
 *  支付数据
 */
@property (nonatomic ,strong) Paymodel *payModel;
/**
 *  软件名称
 */
@property (nonatomic ,strong) NSString * nameStr;
/**
 *  扫描二维码页面
 */
@property (nonatomic ,strong) YTBarcodePayViewController * barcode;
/**
 *  二维码显示页面
 */
@property (nonatomic ,strong)ZbarViewController * zbar;

//@property (nonatomic,strong)YTBillViewController * bill;

@property(nonatomic,weak) id<UIViewControllerCallBackProtocol>delegate;

/**
 *  单例
 *
 *  @return
 */
+ (CsPaySDK *)shardUserInfo;
/**
 *  获取SDK版本号
 *
 *  @return 版本号
 */
+ (NSString *)getVersion;
/**
 *  登录
 *
 *  @param token  账号
 *  @param secret 密码
 *
 *  @return
 */
- (void)initWithToken:(NSString *)token secret:(NSString *)secret option:(NSDictionary *)option withCallBack:(id<UIViewControllerCallBackProtocol>)callback;
/**
 *  支付
 *
 *  @param paymodel 支付模型
 */
- (void)payWithPaymodel:(Paymodel *)paymodel controller:(UIViewController *)controller withCallBack:(id<UIViewControllerCallBackProtocol>)callback;
@end
